<?php
namespace juven\models {
    \defined( '_JEXEC' ) or die( 'Restricted access' );
    
    class login extends \juven\libs\Model{
        protected function _init(){
            $this->_tableName = \juven\libs\Tools::getPrefixedTableName("users");
        }
        
        public function find_username($username){
            $this->_db->connect(\juven\libs\juven::config()->db);
            $rrr = $this->getSingleRecord_By("username", $username);
            $this->_db->disconnect();
            return $rrr;
        }
    }
}
?>
